home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / H-I / HypertalkTools.cpt / Menus For HyperCard™ / card_4109.txt < prev    next >
Text File  |  1989-02-26  |  896b  |  29 lines

  1. -- card: 4109 from stack: in
  2. -- bmap block id: 0
  3. -- flags: 0000
  4. -- background id: 2721
  5. -- name: CheckMenu
  6.  
  7.  
  8. -- part contents for background part 20
  9. ----- text -----
  10. 6
  11.  
  12. -- part contents for background part 1
  13. ----- text -----
  14. XCMD
  15.  
  16. -- part contents for background part 13
  17. ----- text -----
  18. CheckMenu is an XCMD that lets you add and remove check marks for items in menus you've created using the NewMenu XFCN.  Examples:
  19.  
  20.   CheckMenu myMenu, 2, TRUE
  21.   CheckMenu myMenu, 3, (the userLevel>2)
  22.  
  23. The first example will place a check mark next to the second menu item in menu "myMenu".  The second example will place a check mark next to the third item in "myMenu" IF the userLevel is greater than 2.
  24.  
  25. The menu number you provide to to CheckMenu should be the same number that was returned by NewMenu.
  26.  
  27. -- part contents for background part 22
  28. ----- text -----
  29. CheckMenu menuNumber, itemNumber, TRUE/FALSE